package com.springday3aop;

import com.springday3aop.config.SpringConfig;
import com.springday3aop.service.ResourcesService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class App2 {
    public static void main(String[] args) {
        ApplicationContext ctx = new AnnotationConfigApplicationContext(SpringConfig.class);
        ResourcesService resourcesService = ctx.getBean(ResourcesService.class);
        boolean flag = resourcesService.openURL("", "root ");
        System.out.println("密码是否一样，后面是否有空格：" + flag);
    }
}
